Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ttf2woff2

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttf2woff2

Convert TTF files to WOFF2 ones.

  • 4.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
72K
decreased by-55.87%
Maintainers
3
Weekly downloads
 
Created

What is ttf2woff2?

The ttf2woff2 npm package is a tool for converting TrueType font files (TTF) to the Web Open Font Format 2 (WOFF2). This conversion is essential for web developers who want to optimize font loading times and ensure compatibility across different browsers.

What are ttf2woff2's main functionalities?

Convert TTF to WOFF2

This feature allows you to convert a TTF file to a WOFF2 file. The code reads a TTF file from the filesystem, converts it to WOFF2 format, and then writes the output to a new file.

const ttf2woff2 = require('ttf2woff2');
const fs = require('fs');

const input = fs.readFileSync('path/to/font.ttf');
const output = ttf2woff2(input);
fs.writeFileSync('path/to/font.woff2', output);

Other packages similar to ttf2woff2

Keywords

FAQs

Package last updated on 23 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc